package cn.dzh.model.dto;

import lombok.Data;

/**
 * @version V1.0
 * @description: Result
 * @author: dzd
 * @date: 2023/10/24
 */
@Data
public class Result<T> {
    private T result;

    private int code;

    private String msg;

    public Result() {
    }

    public Result(T result, String msg) {
        this.result = result;
        this.msg = msg;
    }
    public Result(T result, String msg,int code) {
        this.result = result;
        this.msg = msg;
    }

    public Result setAttribute(T result, String msg) {
        this.result = result;
        this.msg = msg;
        return this;
    }
}
